package com.csf.struct.facede;

/**
 * TODO ADD DESCRIPTION
 * Date: 2018/9/6
 * Time: 16:22
 *
 * @author chenshf
 */
public class Computer {

    private Cpu cpu;
    private Disk disk;
    private Memory memory;

    public Computer(){
        cpu = new Cpu();
        disk = new Disk();
        memory = new Memory();
    }

    public void start(){
        cpu.start();
        memory.start();
        disk.start();
    }

    public void shutdown(){
        cpu.shutdown();
        memory.shutdown();
        disk.shutdown();
    }
}
